if __name__ == '__main__':
    print('当前文件被引用时自动执行')

name = 'custom_module.py'
def func():
    print(f'当前文件是：{name}')